/*
 * Copyright (C) 2021 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef CALL_POLICY_H
#define CALL_POLICY_H
#include <string>
#include <memory>

#include "call_object_manager.h"

namespace OHOS {
namespace TelephonyCallManager {
class CallPolicy : public CallObjectManager {
public:
    CallPolicy();
    ~CallPolicy();

    int32_t DialPolicy();
    int32_t AccpetCallPolicy(int32_t callid);
    int32_t RejectCallPolicy();
    int32_t HoldCallPolicy();
    int32_t UnHoldCallPolicy();
    int32_t HangUpPolicy();
    int32_t SwapCallPolicy();
    int32_t JoinCallPolicy();
    int32_t GetTransferNumberPolicy();
    int32_t SetTransferNumberPolicy();
    int32_t StartConferencePolicy();
    int32_t InviteToConferencePolicy();
    int32_t KickOutConferencePolicy();
    int32_t LeaveConferencePolicy();
    bool IsPhoneNumberLegal(std::string number);

private:
    uint32_t onlyOneCall_ = 1;
};
} // namespace TelephonyCallManager
} // namespace OHOS

#endif // CALL_POLICY_H